import pyautogui
import time

time.sleep(2)
wait_time1 = 0.5
wait_time2 = 8
currentMouseX, currentMouseY = pyautogui.position()
while True:
    pyautogui.drag(100,0,0.35,pyautogui.easeOutQuad)
    time.sleep(wait_time1)
    pyautogui.moveTo(currentMouseX,currentMouseY)

    pyautogui.drag(0,-100,0.35,pyautogui.easeOutQuad)
    time.sleep(wait_time1)
    pyautogui.moveTo(currentMouseX,currentMouseY)

    pyautogui.drag(-100,0,0.35,pyautogui.easeOutQuad)
    time.sleep(wait_time1)
    pyautogui.moveTo(currentMouseX,currentMouseY)

    pyautogui.drag(0,100,0.35,pyautogui.easeOutQuad)
    time.sleep(wait_time1)
    pyautogui.moveTo(currentMouseX,currentMouseY)

    time.sleep(wait_time2)
